package com.x.crm.rpc;

import com.x.crm.model.CustomerShop;
import com.x.crm.model.Intention;

import java.util.Date;
import java.util.List;
import java.util.Map;


public interface CustomerShopRpcService {

	List<CustomerShop> selectCustomerShopList(CustomerShop customerShop);

	int selectCustomerShopNum(CustomerShop customerShop);

	int updateCustomerShop(CustomerShop customerShop);

	/**
	 * 客户分配
	 * @param customerShop
	 * @return
	 */
	int updateCustomerShopAlloctInfo(CustomerShop customerShop);



	int updateCustomerShopReleaseInfo(CustomerShop customerShop);



	CustomerShop insertCustomerShop(CustomerShop customerShop);

	/**
	 * 只查询关联customer customerShop两张表的客户的信息
	 * @param customerShop
	 * @return
	 */
	List<CustomerShop> selectSimpleCustomerShopList(CustomerShop customerShop);


	List<Map<String, Object>>  selectFollowUpCustomerShopList(CustomerShop customerShop, String searchMode);

	List<Map<String, Object>>  selectFixtureCustomerShopList(CustomerShop customerShop, Intention intention, String searchMode);

	List<CustomerShop>  selectFollowUpCustomerShopInfoList(CustomerShop customerShop);

	List<CustomerShop>  selectFixtureCustomerShopInfoList(CustomerShop customerShop, Intention intention);

	Map<String,Object>  selectFollowUpNum(CustomerShop customerShop, Date queryDate);

	Map<String,Object>  selectOrderUpNum(CustomerShop customerShop, Date queryDate);

	Map<String,Object>  selectFixtureNum(CustomerShop customerShop, Date queryDate);

}
